home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 19.zip
/
BS1 part 19
/
how to learn assembler.adf
/
CH5
/
5_5A_tone.asm
< prev
next >
Wrap
Assembly Source File
|
1988-02-25
|
441b
|
25 lines
;** Tone using Hardware-Register ** (5.5A)
ctlw = $dff096
c0thi = $dff0a0
c0tl = c0thi+4
c0per = c0thi+6
c0vol = c0thi+8
;!!! when > 500KB !!!
;org $40000
;load $40000
;!!!!!!!!!!!!!!!!!!!!
beep:
move.l #table,c0thi ;Table beginning
move #4,c0tl ;Table length
move #300,c0per ;Sample rate
move #40,c0vol ;Volume
move #$8201,ctlw ;Start DMA (Sound)
rts
datatable: dc.b -40,-70,-40,0,40,70,40,0
end